-- GENERATED SPELL FOR [Syndicate Saboteur] --


function spell0_2245(pUnit, Event) --@Fire Shot,n/a--
pUnit:FullCastSpellOnTarget(6980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2245', 663, 1)
end

function spell1_2245(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2245', 622, 1)
end

function Sorts_2245(pUnit, Event)
local choix_sorts_2245 = math.random(0, 1)
if choix_sorts_2245 == 0 then
pUnit:RegisterEvent('spell0_2245', 1, 1)
end
if choix_sorts_2245 == 1 then
pUnit:RegisterEvent('spell1_2245', 1, 1)
end
end

function mob2245_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2245', math.random(1500, 3000), 1)
end

function mob2245_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2245_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2245_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2245, 1, 'mob2245_Action')
RegisterUnitEvent(2245, 2, 'mob2245_Leave')
RegisterUnitEvent(2245, 3, 'mob2245_Kill')
RegisterUnitEvent(2245, 4, 'mob2245_Die')
